#include "librarytreeitem.h"

#include "qedalibrary.h"
#include "qedacomponent.h"

LibraryTreeItem::LibraryTreeItem(int type)
    : QTreeWidgetItem(type)
{
    m_object = 0;
}

LibraryTreeItem::LibraryTreeItem(QTreeWidget *parent, const QStringList &strings, int type)
    : QTreeWidgetItem(parent, strings, type)
{
    m_object = 0;
}

LibraryTreeItem::LibraryTreeItem(QTreeWidgetItem *parent, const QStringList &strings, int type)
    : QTreeWidgetItem(parent, strings, type)
{
    m_object = 0;
}


QedaLibrary *LibraryTreeItem::library()
{
    return qobject_cast<QedaLibrary*>(m_object);
}

QedaComponent *LibraryTreeItem::component()
{
    return qobject_cast<QedaComponent*>(m_object);
}
